package com.lehecai.ucenter.dao;

import java.util.List;

public class QueryWhere {
	private String key;
	private Object value;
	private String operator;
	private List<String> values;

	public QueryWhere(String key, Object value, String operator) {
		this.key = key;
		this.value = value;
		this.operator = operator;
	}
	
	public QueryWhere(String key, Object value) {
		this(key, value, QueryConstant.QUERY_OP_EQUAL);
	}
	
	public QueryWhere(String key, List<String> values) {
		this.key = key;
		this.values = values;
		this.operator = QueryConstant.QUERY_OP_IN;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public List<String> getValues() {
		return values;
	}

	public void setValues(List<String> values) {
		this.values = values;
	}
}
